package com.resou.reader.api.entry;

import android.os.Parcel;
import android.os.Parcelable;

public class BookDetailBean implements Parcelable {

    /**
     * totalRecommend : 0
     * totalClick : 0
     * keywords :
     * updateChapterId : 15028929777433474
     * thousandPrice : 5
     * freeType : 0
     * novelType : 1
     * categoryName : 西方奇幻
     * freeTimeTo : 1537610118000
     * updateChapterName : 第568章 真相·失落的甜甜圈（3）
     * chapterNum : 0
     * authorization : 0
     * sectionPrice : 0
     * novelLabel : 1
     * id : 22710584000520802yw
     * novelCoinPrice : 500
     * novelPic : 12
     * novelStatus : 1
     * novelCnyPrice : 0
     * retention : 34.07%
     * totalReject : 0
     * parentCategoryName : 玄幻言情
     * level : 1
     * updateTime : 1476789884000
     * platformId : 22710584000520802
     * authorId : 3626516704097601
     * novelDescription : 　　这是一个光与影交叠的世界——人间，地狱，天界，原罪横行，失落忏悔。
     * 　　这是一个人类灵眼中的世界，以祈祷的方式向神灵垂问，追寻拂晓的晨星。
     * 　　寂寞上场，全副武装。
     * 　　生死之说，难以言荒。
     * 　　狩猎使徒，杀戮系谱。
     * 　　七宗罪放弃申诉，光之君主默示录。
     * 　　神之左翼，救世为名，神之右擎，荣耀法度。
     * 　　当原罪崩毁、本罪颠倒，铭记与遗忘是最好的想象。
     * 　　前我失丧，今被寻回。丰盛怜悯，得蒙保守。
     * 　　罪得赦免，天赐恩宠。神乐万象，原罪未央。
     * 　　生欢首作——颠覆传统的西方奇幻，你敢来看，我就敢给你一个美妙的梦……
     * coverUrl : //qidian.qpic.cn/qdbimg/349573/c_22710584000520802/180
     * bookPursuitVolume : 1
     * dailyUpdate : 0
     * createTime : 1424340482000
     * serialStatus : 0
     * totalFavorite : 0
     * authorName : 生欢
     * totalWord : 1472020
     * validityDate : 1537610118000
     * freeTimeFrom : 1537610118000
     * parentCategoryId : 30001
     * shareUrl : https://m.resouxs.com/bookDetails/22710584000520802yw
     * novelChannel : yw
     * updateContent : null
     * categoryId : 30007
     * novelName : 原罪未央
     */
    private int totalRecommend;
    private int totalClick;
    private String keywords;
    private String updateChapterId;
    private Integer freeType;
    private String novelType;
    private String bookSlogan;
    private String categoryName;
    private long freeTimeTo;
    private String unshelf;
    private String updateChapterName;
    private int chapterNum;
    private int authorization;
    private float sectionPrice;
    private String novelLabel;
    private String id;
    private float novelCoinPrice;
    private String novelPic;
    private int novelStatus;
    private float novelCnyPrice;
    private String retention;
    private int totalReject;
    private String parentCategoryName;
    private int level;
    private long updateTime;
    private String platformId;
    private String authorId;
    private String novelDescription;
    private String description;
    private String novelId;
    private String coverUrl;
    private int bookPursuitVolume;
    private int dailyUpdate;
    private long createTime;
    private int serialStatus;
    private int sloganType;
    private int totalFavorite;
    private String authorName;
    private float totalWord;
    private long validityDate;
    private long freeTimeFrom;
    private String parentCategoryId;
    private String shareUrl;
    private String novelChannel;
    private String updateContent;
    private String categoryId;
    private String novelName;
    private String zsBookId;
    private String firstChapterId;
    private boolean isCheck = false;
    private String novel_name;
    private String cover_url;
    private String author_name;

    private int chapterIndex;
    private String lastChapterName;
    private String chapterName;

    public int getChapterIndex() {
        return chapterIndex;
    }

    public void setChapterIndex(int chapterIndex) {
        this.chapterIndex = chapterIndex;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public String getLastChapterName() {
        return lastChapterName;
    }

    public void setLastChapterName(String lastChapterName) {
        this.lastChapterName = lastChapterName;
    }

    public String getFirstChapterId() {
        return firstChapterId;
    }

    public void setFirstChapterId(String firstChapterId) {
        this.firstChapterId = firstChapterId;
    }

    public String getZsBookId() {
        return zsBookId;
    }

    public void setZsBookId(String zsBookId) {
        this.zsBookId = zsBookId;
    }

    public int getTotalRecommend() {
        return totalRecommend;
    }

    public void setTotalRecommend(int totalRecommend) {
        this.totalRecommend = totalRecommend;
    }

    public int getTotalClick() {
        return totalClick;
    }

    public void setTotalClick(int totalClick) {
        this.totalClick = totalClick;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getUpdateChapterId() {
        return updateChapterId;
    }

    public void setUpdateChapterId(String updateChapterId) {
        this.updateChapterId = updateChapterId;
    }

    public String getNovelId() {
        return novelId;
    }

    public void setNovelId(String novelId) {
        this.novelId = novelId;
    }

    public int getSloganType() {
        return sloganType;
    }

    public void setSloganType(int sloganType) {
        this.sloganType = sloganType;
    }

    public Integer getFreeType() {
        return freeType == null ? 1 : freeType;
    }

    public void setFreeType(int freeType) {
        this.freeType = freeType;
    }

    public String getNovelType() {
        return novelType;
    }

    public void setNovelType(String novelType) {
        this.novelType = novelType;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public long getFreeTimeTo() {
        return freeTimeTo;
    }

    public void setFreeTimeTo(long freeTimeTo) {
        this.freeTimeTo = freeTimeTo;
    }

    public String getUpdateChapterName() {
        return updateChapterName;
    }

    public void setUpdateChapterName(String updateChapterName) {
        this.updateChapterName = updateChapterName;
    }

    public int getChapterNum() {
        return chapterNum;
    }

    public void setChapterNum(int chapterNum) {
        this.chapterNum = chapterNum;
    }

    public int getAuthorization() {
        return authorization;
    }

    public void setAuthorization(int authorization) {
        this.authorization = authorization;
    }

    public float getSectionPrice() {
        return sectionPrice;
    }

    public void setSectionPrice(float sectionPrice) {
        this.sectionPrice = sectionPrice;
    }

    public String getNovelLabel() {
        return novelLabel;
    }

    public void setNovelLabel(String novelLabel) {
        this.novelLabel = novelLabel;
    }

    public void setNovelCnyPrice(float novelCnyPrice) {
        this.novelCnyPrice = novelCnyPrice;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public float getNovelCoinPrice() {
        return novelCoinPrice;
    }

    public void setNovelCoinPrice(float novelCoinPrice) {
        this.novelCoinPrice = novelCoinPrice;
    }

    public String getNovelPic() {
        return novelPic;
    }

    public void setNovelPic(String novelPic) {
        this.novelPic = novelPic;
    }

    public int getNovelStatus() {
        return novelStatus;
    }

    public void setNovelStatus(int novelStatus) {
        this.novelStatus = novelStatus;
    }

    public float getNovelCnyPrice() {
        return novelCnyPrice;
    }

    public void setNovelCnyPrice(int novelCnyPrice) {
        this.novelCnyPrice = novelCnyPrice;
    }

    public String getRetention() {
        return retention;
    }

    public void setRetention(String retention) {
        this.retention = retention;
    }

    public int getTotalReject() {
        return totalReject;
    }

    public void setTotalReject(int totalReject) {
        this.totalReject = totalReject;
    }

    public String getParentCategoryName() {
        return parentCategoryName;
    }

    public void setParentCategoryName(String parentCategoryName) {
        this.parentCategoryName = parentCategoryName;
    }

    public String getUnshelf() {
        return unshelf == null ? "0" : unshelf;
    }

    public void setUnshelf(String unshelf) {
        this.unshelf = unshelf;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public String getPlatformId() {
        return platformId;
    }

    public void setPlatformId(String platformId) {
        this.platformId = platformId;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getNovelDescription() {
        return novelDescription;
    }

    public void setNovelDescription(String novelDescription) {
        this.novelDescription = novelDescription;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public int getBookPursuitVolume() {
        return bookPursuitVolume;
    }

    public void setBookPursuitVolume(int bookPursuitVolume) {
        this.bookPursuitVolume = bookPursuitVolume;
    }

    public int getDailyUpdate() {
        return dailyUpdate;
    }

    public void setDailyUpdate(int dailyUpdate) {
        this.dailyUpdate = dailyUpdate;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getSerialStatus() {
        return serialStatus;
    }

    public void setSerialStatus(int serialStatus) {
        this.serialStatus = serialStatus;
    }

    public int getTotalFavorite() {
        return totalFavorite;
    }

    public void setTotalFavorite(int totalFavorite) {
        this.totalFavorite = totalFavorite;
    }

    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    public float getTotalWord() {
        return totalWord;
    }

    public void setTotalWord(float totalWord) {
        this.totalWord = totalWord;
    }

    public long getValidityDate() {
        return validityDate;
    }

    public void setValidityDate(long validityDate) {
        this.validityDate = validityDate;
    }

    public long getFreeTimeFrom() {
        return freeTimeFrom;
    }

    public void setFreeTimeFrom(long freeTimeFrom) {
        this.freeTimeFrom = freeTimeFrom;
    }

    public String getParentCategoryId() {
        return parentCategoryId;
    }

    public void setParentCategoryId(String parentCategoryId) {
        this.parentCategoryId = parentCategoryId;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public String getBookSlogan() {
        return bookSlogan;
    }

    public void setBookSlogan(String bookSlogan) {
        this.bookSlogan = bookSlogan;
    }

    public String getNovelChannel() {
        return novelChannel;
    }

    public void setNovelChannel(String novelChannel) {
        this.novelChannel = novelChannel;
    }

    public String getUpdateContent() {
        return updateContent;
    }

    public void setUpdateContent(String updateContent) {
        this.updateContent = updateContent;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getNovelName() {
        return novelName;
    }

    public void setNovelName(String novelName) {
        this.novelName = novelName;
    }

    public boolean getIsCheck() {
        return isCheck;
    }

    public void setIsCheck(boolean isCheck) {
        this.isCheck = isCheck;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getNovel_name() {
        return novel_name;
    }

    public void setNovel_name(String novel_name) {
        this.novel_name = novel_name;
    }

    public String getCover_url() {
        return cover_url;
    }

    public void setCover_url(String cover_url) {
        this.cover_url = cover_url;
    }

    public String getAuthor_name() {
        return author_name;
    }

    public void setAuthor_name(String author_name) {
        this.author_name = author_name;
    }

    public BookDetailBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.totalRecommend);
        dest.writeInt(this.totalClick);
        dest.writeString(this.keywords);
        dest.writeString(this.updateChapterId);
        dest.writeInt(this.freeType == null ? 0 : this.freeType);
        dest.writeString(this.bookSlogan);
        dest.writeString(this.novelType);
        dest.writeString(this.categoryName);
        dest.writeLong(this.freeTimeTo);
        dest.writeString(this.updateChapterName);
        dest.writeInt(this.chapterNum);
        dest.writeInt(this.authorization);
        dest.writeFloat(this.sectionPrice);
        dest.writeString(this.novelLabel);
        dest.writeString(this.id);
        dest.writeFloat(this.novelCoinPrice);
        dest.writeString(this.novelPic);
        dest.writeInt(this.novelStatus);
        dest.writeFloat(this.novelCnyPrice);
        dest.writeString(this.retention);
        dest.writeInt(this.totalReject);
        dest.writeString(this.parentCategoryName);
        dest.writeInt(this.level);
        dest.writeLong(this.updateTime);
        dest.writeString(this.platformId);
        dest.writeString(this.authorId);
        dest.writeString(this.novelDescription);
        dest.writeString(this.coverUrl);
        dest.writeInt(this.bookPursuitVolume);
        dest.writeInt(this.dailyUpdate);
        dest.writeLong(this.createTime);
        dest.writeInt(this.serialStatus);
        dest.writeInt(this.totalFavorite);
        dest.writeString(this.authorName);
        dest.writeFloat(this.totalWord);
        dest.writeLong(this.validityDate);
        dest.writeLong(this.freeTimeFrom);
        dest.writeString(this.parentCategoryId);
        dest.writeString(this.shareUrl);
        dest.writeString(this.novelChannel);
        dest.writeString(this.updateContent);
        dest.writeString(this.categoryId);
        dest.writeString(this.novelName);
        dest.writeString(this.zsBookId);
        dest.writeString(this.firstChapterId);
    }

    protected BookDetailBean(Parcel in) {
        this.totalRecommend = in.readInt();
        this.totalClick = in.readInt();
        this.keywords = in.readString();
        this.updateChapterId = in.readString();
        this.freeType = in.readInt();
        this.bookSlogan = in.readString();
        this.novelType = in.readString();
        this.categoryName = in.readString();
        this.freeTimeTo = in.readLong();
        this.updateChapterName = in.readString();
        this.chapterNum = in.readInt();
        this.authorization = in.readInt();
        this.sectionPrice = in.readFloat();
        this.novelLabel = in.readString();
        this.id = in.readString();
        this.novelCoinPrice = in.readFloat();
        this.novelPic = in.readString();
        this.novelStatus = in.readInt();
        this.novelCnyPrice = in.readFloat();
        this.retention = in.readString();
        this.totalReject = in.readInt();
        this.parentCategoryName = in.readString();
        this.level = in.readInt();
        this.updateTime = in.readLong();
        this.platformId = in.readString();
        this.authorId = in.readString();
        this.novelDescription = in.readString();
        this.coverUrl = in.readString();
        this.bookPursuitVolume = in.readInt();
        this.dailyUpdate = in.readInt();
        this.createTime = in.readLong();
        this.serialStatus = in.readInt();
        this.totalFavorite = in.readInt();
        this.authorName = in.readString();
        this.totalWord = in.readFloat();
        this.validityDate = in.readLong();
        this.freeTimeFrom = in.readLong();
        this.parentCategoryId = in.readString();
        this.shareUrl = in.readString();
        this.novelChannel = in.readString();
        this.updateContent = in.readString();
        this.categoryId = in.readString();
        this.novelName = in.readString();
        this.zsBookId = in.readString();
        this.firstChapterId = in.readString();
    }

    public static final Creator<BookDetailBean> CREATOR = new Creator<BookDetailBean>() {
        @Override
        public BookDetailBean createFromParcel(Parcel source) {
            return new BookDetailBean(source);
        }

        @Override
        public BookDetailBean[] newArray(int size) {
            return new BookDetailBean[size];
        }
    };
}
